﻿'use strict';

define([
], function () {
    var Model = Backbone.Model.extend({
        superClass: null,

        //Static
        defaults: {
            customer: null,
            end: null,
            start: null,
        },

        constructor: function () {
            this.superClass = Model.__super__;

            this.superClass.constructor.apply(this, arguments);
        },

        //get: function (attr) {
        //    var retVal;

        //    if (attr) {
        //        var attrFixed = $.trim(attr).toUpperCase(),
        //            price = this.get('price'),
        //            pay = this.get('pay');

        //        switch (attrFixed) {
        //            case "PAYSTATUS":
        //                if (this.)
        //                retVal = this.get('count') * this.get('pricePerUnit');
        //                break;
        //            default:
        //                retVal = this.superClass.get.call(this, attr);
        //                break;
        //        }
        //    }
        //    else {
        //        retVal = this.superClass.get.call(this, attr);
        //    }

        //    return retVal;
        //},
    });

    return Model;
});